package com.seckill.item.domian.dto;


import com.seckill.common.constants.ErrorInfo;
import com.seckill.common.validate.annotations.EnumValid;
import com.seckill.item.constants.ItemErrorInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;


@Data
@ApiModel(description = "商品分类启用/禁用")
public class CategoryDisableOrEnableDTO {
    @ApiModelProperty("商品分类id")
    @NotNull(message = ItemErrorInfo.Msg.CATEGORY_ID_NOT_NULL)
    private Long id;
    @ApiModelProperty("商品分类状态，1：启用，0：禁用")
    @EnumValid(enumeration = {0,1}, message = ItemErrorInfo.Msg.CATEGORY_DISABLE_ENABLE_STATUS_ENUM)
    private Integer status;
}
